package com.patterns.demo.abstractFactory;

import com.patterns.demo.abstractFactory.factory.Factory;
import com.patterns.demo.abstractFactory.factory.impl.SendMailFactory;
import com.patterns.demo.abstractFactory.factory.impl.SendMessegeFactory;

/**
 * Author: SamGroves
 * <p>
 * Description: 抽象工厂模式
 * <p>
 * Date: 2017/11/27
 */
public class Test {

    public static void main(String[] args) {

        Factory factory1 = new SendMailFactory();
        factory1.produce();

        Factory factory2 = new SendMessegeFactory();
        factory2.produce();
    }
}
